<?php // no direct access
defined('_JEXEC') or die('Restricted access');
$db = JFactory::getDBO();
 ?>

<table width="100%" border="0" cellspacing="0" cellpadding="0" >
  <tr>
    <td>
		<div id="title"> Hàng thủ công </div>
	</td>
  </tr>
   <tr>
    <td>
		<div id="m_product">
				<?php	foreach($items as $item){ ?>
				<div id="p_product">
								<center>
								<div class="catItemImageBlock" >
								<span class="catItemImage" >
					 <?php  if (JFile::exists(JPATH_SITE.DS.'media'.DS.'k2'.DS.'items'.DS.'cache'.DS.md5("Image".$item->id).'_L.jpg'))
								$item->image = JURI::root().'media/k2/items/cache/'.md5("Image".$item->id).'_L.jpg';
								 ?>
								
								<a href="index.php?option=com_k2&view=item&type=sx&id=<?php echo $item->id; ?>:<?php echo $item->alias ;?>&Itemid=40">
								<img id="i_product" alt="<?php echo $item->title ?>" src="<?php echo $item->image; ?>" width="150" height="100">
								</a>
								</span>
								</div>
								<div class="clr"></div>
								<div class="catItemHeader" >
									<h3 class="catItemTitle" ><a href="index.php?option=com_k2&view=item&type=sx&id=<?php echo $item->id; ?>:<?php echo $item->alias ;?>&Itemid=40"><?php echo $item->title; ?></a></h3>
								</div>
								<div class="k2store_item_price"><a href="index.php?option=com_rsform&view=rsform&item=<?php echo $item->id ?>&Itemid=47"><div id="buy_img"></div></a></div>
								<div class="clr"></div>
								</center>
				</div>		<?php
				
				}
				?>
		</div>
	</td>
  </tr>
</table>


